<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__tcpwm__functions__shiftreg.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__tcpwm.html">TCPWM        (Timer Counter PWM)</a> &raquo; <a class="el" href="group__group__tcpwm__shiftreg.html">Shift Register (TCPWM)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gac0b638d2ea8e28da947179477295d40b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gac0b638d2ea8e28da947179477295d40b">Cy_TCPWM_ShiftReg_Init</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, <a class="el" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a> const *config)</td></tr>
<tr class="memdesc:gac0b638d2ea8e28da947179477295d40b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the counter in the TCPWM block for the Shift Register operation.  <a href="#gac0b638d2ea8e28da947179477295d40b">More...</a><br /></td></tr>
<tr class="separator:gac0b638d2ea8e28da947179477295d40b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga40eb044ea3499d603415df7dee7fd699"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga40eb044ea3499d603415df7dee7fd699">Cy_TCPWM_ShiftReg_DeInit</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, <a class="el" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a> const *config)</td></tr>
<tr class="memdesc:ga40eb044ea3499d603415df7dee7fd699"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the counter in the TCPWM block, returns register values to default.  <a href="#ga40eb044ea3499d603415df7dee7fd699">More...</a><br /></td></tr>
<tr class="separator:ga40eb044ea3499d603415df7dee7fd699"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga66d1c366130d20469af69a2d41016727"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga66d1c366130d20469af69a2d41016727">Cy_TCPWM_ShiftReg_Enable</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga66d1c366130d20469af69a2d41016727"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the counter in the TCPWM block for the Shift Register operation.  <a href="#ga66d1c366130d20469af69a2d41016727">More...</a><br /></td></tr>
<tr class="separator:ga66d1c366130d20469af69a2d41016727"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga994a97164fdc6309ac56c1bd498a67fb"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga994a97164fdc6309ac56c1bd498a67fb">Cy_TCPWM_ShiftReg_Disable</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga994a97164fdc6309ac56c1bd498a67fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the counter in the TCPWM block.  <a href="#ga994a97164fdc6309ac56c1bd498a67fb">More...</a><br /></td></tr>
<tr class="separator:ga994a97164fdc6309ac56c1bd498a67fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga45c50325effedc0dc9a4805fe287c2bd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga45c50325effedc0dc9a4805fe287c2bd">Cy_TCPWM_ShiftReg_GetStatus</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga45c50325effedc0dc9a4805fe287c2bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of the Shift Register whether it is running or not.  <a href="#ga45c50325effedc0dc9a4805fe287c2bd">More...</a><br /></td></tr>
<tr class="separator:ga45c50325effedc0dc9a4805fe287c2bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02136c4ff9a12ef1709cd3b3aede46b3"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga02136c4ff9a12ef1709cd3b3aede46b3">Cy_TCPWM_ShiftReg_SetCompare0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compare0)</td></tr>
<tr class="memdesc:ga02136c4ff9a12ef1709cd3b3aede46b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compare value for Compare 0 when the compare mode enabled.  <a href="#ga02136c4ff9a12ef1709cd3b3aede46b3">More...</a><br /></td></tr>
<tr class="separator:ga02136c4ff9a12ef1709cd3b3aede46b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac864ecf4ea1ad215bcb5415d14b4b65c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gac864ecf4ea1ad215bcb5415d14b4b65c">Cy_TCPWM_ShiftReg_GetCompare0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gac864ecf4ea1ad215bcb5415d14b4b65c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compare 0 value.  <a href="#gac864ecf4ea1ad215bcb5415d14b4b65c">More...</a><br /></td></tr>
<tr class="separator:gac864ecf4ea1ad215bcb5415d14b4b65c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6755fb8d6739e449b1fd53ca152c595b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga6755fb8d6739e449b1fd53ca152c595b">Cy_TCPWM_ShiftReg_SetCompare0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compareBuf0)</td></tr>
<tr class="memdesc:ga6755fb8d6739e449b1fd53ca152c595b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the buffered compare value for Compare 0 when the compare mode enabled.  <a href="#ga6755fb8d6739e449b1fd53ca152c595b">More...</a><br /></td></tr>
<tr class="separator:ga6755fb8d6739e449b1fd53ca152c595b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafe9b2d7c72af9c6308cca9e6cca4730c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gafe9b2d7c72af9c6308cca9e6cca4730c">Cy_TCPWM_ShiftReg_GetCompare0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gafe9b2d7c72af9c6308cca9e6cca4730c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered compare 0 value.  <a href="#gafe9b2d7c72af9c6308cca9e6cca4730c">More...</a><br /></td></tr>
<tr class="separator:gafe9b2d7c72af9c6308cca9e6cca4730c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga50ae8e3bf88af7f67ec871339ceb8ce8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga50ae8e3bf88af7f67ec871339ceb8ce8">Cy_TCPWM_ShiftReg_EnableCompare0Swap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga50ae8e3bf88af7f67ec871339ceb8ce8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the comparison swap of compare 0 and compareBuf 0 on corresponding command or external trigger.  <a href="#ga50ae8e3bf88af7f67ec871339ceb8ce8">More...</a><br /></td></tr>
<tr class="separator:ga50ae8e3bf88af7f67ec871339ceb8ce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2d444836d6c8015b59fbad627190f7f5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga2d444836d6c8015b59fbad627190f7f5">Cy_TCPWM_ShiftReg_SetCompare1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compare1)</td></tr>
<tr class="memdesc:ga2d444836d6c8015b59fbad627190f7f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compare value for Compare 1 when the compare mode enabled.  <a href="#ga2d444836d6c8015b59fbad627190f7f5">More...</a><br /></td></tr>
<tr class="separator:ga2d444836d6c8015b59fbad627190f7f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96d2c72772b3a8944d2d4dd6e525f0be"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga96d2c72772b3a8944d2d4dd6e525f0be">Cy_TCPWM_ShiftReg_GetCompare1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga96d2c72772b3a8944d2d4dd6e525f0be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compare 1 value.  <a href="#ga96d2c72772b3a8944d2d4dd6e525f0be">More...</a><br /></td></tr>
<tr class="separator:ga96d2c72772b3a8944d2d4dd6e525f0be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac0ed09dae23bbeea192409be29d04cec"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gac0ed09dae23bbeea192409be29d04cec">Cy_TCPWM_ShiftReg_SetCompare1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compareBuf1)</td></tr>
<tr class="memdesc:gac0ed09dae23bbeea192409be29d04cec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the buffered compare value for Compare 1 when the compare mode enabled.  <a href="#gac0ed09dae23bbeea192409be29d04cec">More...</a><br /></td></tr>
<tr class="separator:gac0ed09dae23bbeea192409be29d04cec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga852928eca1da173c466edbf694ae0c7f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga852928eca1da173c466edbf694ae0c7f">Cy_TCPWM_ShiftReg_GetCompare1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga852928eca1da173c466edbf694ae0c7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered compare 1 value.  <a href="#ga852928eca1da173c466edbf694ae0c7f">More...</a><br /></td></tr>
<tr class="separator:ga852928eca1da173c466edbf694ae0c7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae9aa87161096ef41bb9d7f9b2fe92fa7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gae9aa87161096ef41bb9d7f9b2fe92fa7">Cy_TCPWM_ShiftReg_EnableCompare1Swap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:gae9aa87161096ef41bb9d7f9b2fe92fa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the comparison swap of compare 1 and compareBuf 1 on corresponding command or external trigger.  <a href="#gae9aa87161096ef41bb9d7f9b2fe92fa7">More...</a><br /></td></tr>
<tr class="separator:gae9aa87161096ef41bb9d7f9b2fe92fa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab4b99149e681bf5fd680462a2edc864a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gab4b99149e681bf5fd680462a2edc864a">Cy_TCPWM_ShiftReg_SetCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t count)</td></tr>
<tr class="memdesc:gab4b99149e681bf5fd680462a2edc864a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the counter.  <a href="#gab4b99149e681bf5fd680462a2edc864a">More...</a><br /></td></tr>
<tr class="separator:gab4b99149e681bf5fd680462a2edc864a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga291cd2d49e11dc04e9823d62351a998e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga291cd2d49e11dc04e9823d62351a998e">Cy_TCPWM_ShiftReg_GetCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga291cd2d49e11dc04e9823d62351a998e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the counter.  <a href="#ga291cd2d49e11dc04e9823d62351a998e">More...</a><br /></td></tr>
<tr class="separator:ga291cd2d49e11dc04e9823d62351a998e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62e3ebf5e164e1a69c771305b0f48fd7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga62e3ebf5e164e1a69c771305b0f48fd7">Cy_TCPWM_ShiftReg_SetTaps</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t taps)</td></tr>
<tr class="memdesc:ga62e3ebf5e164e1a69c771305b0f48fd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets which taps are enabled.  <a href="#ga62e3ebf5e164e1a69c771305b0f48fd7">More...</a><br /></td></tr>
<tr class="separator:ga62e3ebf5e164e1a69c771305b0f48fd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a85feba92416e04dac2d57f7b1657d6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga0a85feba92416e04dac2d57f7b1657d6">Cy_TCPWM_ShiftReg_GetTaps</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga0a85feba92416e04dac2d57f7b1657d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns which taps are enabled.  <a href="#ga0a85feba92416e04dac2d57f7b1657d6">More...</a><br /></td></tr>
<tr class="separator:ga0a85feba92416e04dac2d57f7b1657d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga371b9f1aaf90d7ec07bf096de7639cc6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#ga371b9f1aaf90d7ec07bf096de7639cc6">Cy_TCPWM_ShiftReg_LineOutStatus</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t shiftRegOutSelect)</td></tr>
<tr class="memdesc:ga371b9f1aaf90d7ec07bf096de7639cc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current level of the selected Shift Register output line.  <a href="#ga371b9f1aaf90d7ec07bf096de7639cc6">More...</a><br /></td></tr>
<tr class="separator:ga371b9f1aaf90d7ec07bf096de7639cc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa2f8fce9abfa511020e6f8b696b476e0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__shiftreg.html#gaa2f8fce9abfa511020e6f8b696b476e0">Cy_TCPWM_Shiftreg_EnableSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:gaa2f8fce9abfa511020e6f8b696b476e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT.  <a href="#gaa2f8fce9abfa511020e6f8b696b476e0">More...</a><br /></td></tr>
<tr class="separator:gaa2f8fce9abfa511020e6f8b696b476e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gac0b638d2ea8e28da947179477295d40b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac0b638d2ea8e28da947179477295d40b">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a> Cy_TCPWM_ShiftReg_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the counter in the TCPWM block for the Shift Register operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. See <a class="el" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error / status code. See <a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>.</dd></dl>
<div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Initialize the first (index = 0) of TCPWM 0 block</span></div><div class="line"><span class="comment">     * as Shift Register with configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a> shiftreg_config =</div><div class="line">    {</div><div class="line">       <span class="comment">/* .clockPrescaler       = */</span><a class="code" href="group__group__tcpwm__shiftreg__clk__prescalers.html#ga89e93424b4425747f2aae590ff093ead">CY_TCPWM_SHIFTREG_PRESCALER_DIVBY_1</a>,</div><div class="line">       <span class="comment">/* .tapsEnabled          = */</span>0x80000000UL,</div><div class="line">       <span class="comment">/* .compare0             = */</span>16384UL,</div><div class="line">       <span class="comment">/* .compareBuf0          = */</span>16384UL,</div><div class="line">       <span class="comment">/* .enableCompare0Swap   = */</span><span class="keyword">false</span>,</div><div class="line">       <span class="comment">/* .compare1             = */</span>16384UL,</div><div class="line">       <span class="comment">/* .compareBuf1          = */</span>16384UL,</div><div class="line">       <span class="comment">/* .enableCompare1Swap   = */</span><span class="keyword">false</span>,</div><div class="line">       <span class="comment">/* .interruptSources     = */</span><a class="code" href="group__group__tcpwm__interrupt__sources.html#gac57e8fe929cde0bb273a4c0a812639f2">CY_TCPWM_INT_ON_CC0</a>,                <span class="comment">/* Interrupt will rise on CC0 Match*/</span></div><div class="line">       <span class="comment">/* .invertShiftRegOut    = */</span><a class="code" href="group__group__tcpwm__shiftreg__output__invert.html#gad73b211488b406ff61935039e77eda1d">CY_TCPWM_SHIFTREG_INVERT_DISABLE</a>,   <span class="comment">/* Not inverted */</span></div><div class="line">       <span class="comment">/* .invertShiftRegOutN   = */</span><a class="code" href="group__group__tcpwm__shiftreg__output__invert.html#gad73b211488b406ff61935039e77eda1d">CY_TCPWM_SHIFTREG_INVERT_DISABLE</a>,   <span class="comment">/* Not inverted */</span></div><div class="line">       <span class="comment">/* .reloadInputMode      = */</span><a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>,               <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_LEVEL) */</span></div><div class="line">       <span class="comment">/* .reloadInput          = */</span><a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">       <span class="comment">/* .startInputMode       = */</span><a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>,               <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_LEVEL) */</span></div><div class="line">       <span class="comment">/* .startInput           = */</span><a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">       <span class="comment">/* .killInputMode        = */</span><a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>,               <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_LEVEL) */</span></div><div class="line">       <span class="comment">/* .killInput            = */</span><a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">       <span class="comment">/* .shiftInputMode       = */</span><a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>,               <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">       <span class="comment">/* .shiftInput           = */</span><a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>,                   <span class="comment">/* Shift Register will run forever */</span></div><div class="line">       <span class="comment">/* .serialInputMode      = */</span><a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>,               <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_LEVEL) */</span></div><div class="line">       <span class="comment">/* .serialInput          = */</span><a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">       <span class="comment">/* .shiftRegOnDisable    = */</span><a class="code" href="group__group__tcpwm__shiftreg__output__on__disable.html#ga10c408c65db9a112f19c387c7d70328a">CY_TCPWM_SHIFTREG_OUTPUT_HIGHZ</a>,     <span class="comment">/* Default High impedance mode*/</span></div><div class="line">       <span class="comment">/* .trigger0Event        = */</span><a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>,   <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">       <span class="comment">/* .trigger1Event        = */</span><a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>,   <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gac0b638d2ea8e28da947179477295d40b">Cy_TCPWM_ShiftReg_Init</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, &amp;shiftreg_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment -->
</div>
</div>
<a id="ga40eb044ea3499d603415df7dee7fd699"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga40eb044ea3499d603415df7dee7fd699">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_TCPWM_ShiftReg_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the counter in the TCPWM block, returns register values to default. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. See <a class="el" href="structcy__stc__tcpwm__shiftreg__config__t.html">cy_stc_tcpwm_shiftreg_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to deinitialize the previously initialized shift register */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Disable the shift register prior to deinitializing */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga994a97164fdc6309ac56c1bd498a67fb">Cy_TCPWM_ShiftReg_Disable</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga40eb044ea3499d603415df7dee7fd699">Cy_TCPWM_ShiftReg_DeInit</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, &amp;config);</div></div><!-- fragment -->
</div>
</div>
<a id="ga66d1c366130d20469af69a2d41016727"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga66d1c366130d20469af69a2d41016727">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_Enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the counter in the TCPWM block for the Shift Register operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable Shift Register */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga66d1c366130d20469af69a2d41016727">Cy_TCPWM_ShiftReg_Enable</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div></div><!-- fragment -->
</div>
</div>
<a id="ga994a97164fdc6309ac56c1bd498a67fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga994a97164fdc6309ac56c1bd498a67fb">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_Disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the counter in the TCPWM block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: Disable Shift Register */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga994a97164fdc6309ac56c1bd498a67fb">Cy_TCPWM_ShiftReg_Disable</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div></div><!-- fragment -->
</div>
</div>
<a id="ga45c50325effedc0dc9a4805fe287c2bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga45c50325effedc0dc9a4805fe287c2bd">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of the Shift Register whether it is running or not. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status. See <a class="el" href="group__group__tcpwm__shiftreg__status.html">Shift Register Status</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>The status value is not the same as in TCPWM status register.</dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to check if</span></div><div class="line"><span class="comment">     * the first (index = 0) Shift Register of the TCPWM0 block is running or not.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != (<a class="code" href="group__group__tcpwm__shiftreg__status.html#ga0c8048ef42cfd40b8b9d1d60ff23eae3">CY_TCPWM_SHIFTREG_STATUS_RUNNING</a> &amp;</div><div class="line">                <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga45c50325effedc0dc9a4805fe287c2bd">Cy_TCPWM_ShiftReg_GetStatus</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM)))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Shift Register is running */</span></div><div class="line">    }</div></div><!-- fragment -->
</div>
</div>
<a id="ga02136c4ff9a12ef1709cd3b3aede46b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga02136c4ff9a12ef1709cd3b3aede46b3">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_SetCompare0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_SetCompare0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compare0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compare value for Compare 0 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compare0</td><td>The Compare 0 value.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the Compare 0 value of</span></div><div class="line"><span class="comment">     * the first (index = 0) Shift Register of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gac864ecf4ea1ad215bcb5415d14b4b65c">Cy_TCPWM_ShiftReg_GetCompare0Val</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga02136c4ff9a12ef1709cd3b3aede46b3">Cy_TCPWM_ShiftReg_SetCompare0Val</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, compare);</div></div><!-- fragment -->
</div>
</div>
<a id="gac864ecf4ea1ad215bcb5415d14b4b65c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac864ecf4ea1ad215bcb5415d14b4b65c">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetCompare0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetCompare0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compare 0 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Compare 0 value.</dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the Compare 0 value of</span></div><div class="line"><span class="comment">     * the first (index = 0) Shift Register of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gac864ecf4ea1ad215bcb5415d14b4b65c">Cy_TCPWM_ShiftReg_GetCompare0Val</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga02136c4ff9a12ef1709cd3b3aede46b3">Cy_TCPWM_ShiftReg_SetCompare0Val</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, compare);</div></div><!-- fragment -->
</div>
</div>
<a id="ga6755fb8d6739e449b1fd53ca152c595b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6755fb8d6739e449b1fd53ca152c595b">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_SetCompare0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_SetCompare0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compareBuf0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the buffered compare value for Compare 0 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compareBuf0</td><td>The buffered Compare 0 value.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify buffered compare 0 value</span></div><div class="line"><span class="comment">     * for the first (index = 0) Shift Register of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the compare swapping feature should be enabled.</span></div><div class="line"><span class="comment">     * This can be used to change the compare value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the compare value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gafe9b2d7c72af9c6308cca9e6cca4730c">Cy_TCPWM_ShiftReg_GetCompare0BufVal</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga6755fb8d6739e449b1fd53ca152c595b">Cy_TCPWM_ShiftReg_SetCompare0BufVal</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, compare);</div><div class="line">    <span class="comment">/* Now the compare 0 and buffered compare 0 values can be swapped using either HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment -->
</div>
</div>
<a id="gafe9b2d7c72af9c6308cca9e6cca4730c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafe9b2d7c72af9c6308cca9e6cca4730c">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetCompare0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetCompare0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered compare 0 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered compare 0 value.</dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify buffered compare 0 value</span></div><div class="line"><span class="comment">     * for the first (index = 0) Shift Register of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the compare swapping feature should be enabled.</span></div><div class="line"><span class="comment">     * This can be used to change the compare value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the compare value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gafe9b2d7c72af9c6308cca9e6cca4730c">Cy_TCPWM_ShiftReg_GetCompare0BufVal</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga6755fb8d6739e449b1fd53ca152c595b">Cy_TCPWM_ShiftReg_SetCompare0BufVal</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, compare);</div><div class="line">    <span class="comment">/* Now the compare 0 and buffered compare 0 values can be swapped using either HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment -->
</div>
</div>
<a id="ga50ae8e3bf88af7f67ec871339ceb8ce8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga50ae8e3bf88af7f67ec871339ceb8ce8">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_EnableCompare0Swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_EnableCompare0Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the comparison swap of compare 0 and compareBuf 0 on corresponding command or external trigger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: There is a need to enable the compare swapping feature for</span></div><div class="line"><span class="comment">     * the first (index = 0) Shift Register of the TCPWM0 block</span></div><div class="line"><span class="comment">     * This can be used to change the compare value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the compare value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga50ae8e3bf88af7f67ec871339ceb8ce8">Cy_TCPWM_ShiftReg_EnableCompare0Swap</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, <span class="keyword">true</span>);</div><div class="line"></div><div class="line">    <span class="comment">/* Now the compare 0 and 1 values can be swapped using either HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment -->
</div>
</div>
<a id="ga2d444836d6c8015b59fbad627190f7f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2d444836d6c8015b59fbad627190f7f5">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_SetCompare1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_SetCompare1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compare1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compare value for Compare 1 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compare1</td><td>The Compare 1 value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga96d2c72772b3a8944d2d4dd6e525f0be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96d2c72772b3a8944d2d4dd6e525f0be">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetCompare1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetCompare1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compare 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Compare 1 value. </dd></dl>

</div>
</div>
<a id="gac0ed09dae23bbeea192409be29d04cec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac0ed09dae23bbeea192409be29d04cec">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_SetCompare1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_SetCompare1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compareBuf1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the buffered compare value for Compare 1 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compareBuf1</td><td>The buffered Compare 1 value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga852928eca1da173c466edbf694ae0c7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga852928eca1da173c466edbf694ae0c7f">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetCompare1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetCompare1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered compare 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered compare 1 value. </dd></dl>

</div>
</div>
<a id="gae9aa87161096ef41bb9d7f9b2fe92fa7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae9aa87161096ef41bb9d7f9b2fe92fa7">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_EnableCompare1Swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_EnableCompare1Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the comparison swap of compare 1 and compareBuf 1 on corresponding command or external trigger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab4b99149e681bf5fd680462a2edc864a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab4b99149e681bf5fd680462a2edc864a">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_SetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_SetCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">count</td><td>The value to write into the counter.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the counter value for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_MASK  (1UL &lt;&lt; MY_TCPWM_SHIFTREG_NUM)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_VAL   (100UL)</span></div><div class="line">    uint32_t count;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gab4b99149e681bf5fd680462a2edc864a">Cy_TCPWM_ShiftReg_SetCounter</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, MY_TCPWM_SHIFTREG_VAL);</div><div class="line"></div><div class="line">    count = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga291cd2d49e11dc04e9823d62351a998e">Cy_TCPWM_ShiftReg_GetCounter</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="keywordflow">if</span>( count == MY_TCPWM_SHIFTREG_VAL)</div><div class="line">    {</div><div class="line">        <span class="comment">/* Counter value is set correctly */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div></div><!-- fragment -->
</div>
</div>
<a id="ga291cd2d49e11dc04e9823d62351a998e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga291cd2d49e11dc04e9823d62351a998e">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current counter value.</dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the counter value for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_MASK  (1UL &lt;&lt; MY_TCPWM_SHIFTREG_NUM)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_VAL   (100UL)</span></div><div class="line">    uint32_t count;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#gab4b99149e681bf5fd680462a2edc864a">Cy_TCPWM_ShiftReg_SetCounter</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, MY_TCPWM_SHIFTREG_VAL);</div><div class="line"></div><div class="line">    count = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga291cd2d49e11dc04e9823d62351a998e">Cy_TCPWM_ShiftReg_GetCounter</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="keywordflow">if</span>( count == MY_TCPWM_SHIFTREG_VAL)</div><div class="line">    {</div><div class="line">        <span class="comment">/* Counter value is set correctly */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div></div><!-- fragment -->
</div>
</div>
<a id="ga62e3ebf5e164e1a69c771305b0f48fd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62e3ebf5e164e1a69c771305b0f48fd7">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_SetTaps()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ShiftReg_SetTaps </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>taps</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets which taps are enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">taps</td><td>The taps that will be enabled.</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the taps value for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_MASK  (1UL &lt;&lt; MY_TCPWM_SHIFTREG_NUM)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_TAPS  (1UL)</span></div><div class="line">    uint32_t tapsEnabled;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga62e3ebf5e164e1a69c771305b0f48fd7">Cy_TCPWM_ShiftReg_SetTaps</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, MY_TCPWM_SHIFTREG_VAL);</div><div class="line"></div><div class="line">    tapsEnabled = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga0a85feba92416e04dac2d57f7b1657d6">Cy_TCPWM_ShiftReg_GetTaps</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="keywordflow">if</span>( tapsEnabled == MY_TCPWM_SHIFTREG_TAPS)</div><div class="line">    {</div><div class="line">        <span class="comment">/* taps value is set correctly */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div></div><!-- fragment -->
</div>
</div>
<a id="ga0a85feba92416e04dac2d57f7b1657d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0a85feba92416e04dac2d57f7b1657d6">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_GetTaps()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_GetTaps </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns which taps are enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a COUNTER PWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns which taps are enabled.</dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the taps value for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_MASK  (1UL &lt;&lt; MY_TCPWM_SHIFTREG_NUM)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_TAPS  (1UL)</span></div><div class="line">    uint32_t tapsEnabled;</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga62e3ebf5e164e1a69c771305b0f48fd7">Cy_TCPWM_ShiftReg_SetTaps</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, MY_TCPWM_SHIFTREG_VAL);</div><div class="line"></div><div class="line">    tapsEnabled = <a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga0a85feba92416e04dac2d57f7b1657d6">Cy_TCPWM_ShiftReg_GetTaps</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line">    <span class="keywordflow">if</span>( tapsEnabled == MY_TCPWM_SHIFTREG_TAPS)</div><div class="line">    {</div><div class="line">        <span class="comment">/* taps value is set correctly */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div></div><!-- fragment -->
</div>
</div>
<a id="ga371b9f1aaf90d7ec07bf096de7639cc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga371b9f1aaf90d7ec07bf096de7639cc6">&#9670;&nbsp;</a></span>Cy_TCPWM_ShiftReg_LineOutStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_ShiftReg_LineOutStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>shiftRegOutSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current level of the selected Shift Register output line. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">shiftRegOutSelect</td><td>Defines which Shift Register output line is being checked: line_out or line_out_inv.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current Shift Register output line level.</dd></dl>
<div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to check current level of</span></div><div class="line"><span class="comment">     * Shift Register Line output for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__functions__shiftreg.html#ga371b9f1aaf90d7ec07bf096de7639cc6">Cy_TCPWM_ShiftReg_LineOutStatus</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM, <a class="code" href="group__group__tcpwm__shiftreg__output__line.html#gab986a547d63cb7bf43a7357279019705">CY_TCPWM_SHIFTREG_LINE_OUT</a>))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Shift Register Line is High */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* Shift Register Line is Low */</span></div><div class="line">    }</div></div><!-- fragment -->
</div>
</div>
<a id="gaa2f8fce9abfa511020e6f8b696b476e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa2f8fce9abfa511020e6f8b696b476e0">&#9670;&nbsp;</a></span>Cy_TCPWM_Shiftreg_EnableSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_Shiftreg_EnableSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
